import { Message } from "@arco-design/web-vue";
import { request } from "../utils/request";
export const answerApi = {
  save: "/answer/save",
  result:"/answer/result"
};

export const saveAnswer = async (data) => {
  const res = await request("提交答案", {
    url: answerApi.save,
    method: "post",
    data: data,
  });
  if (res.success) {
    Message.success("提交成功");
  }
  return res;
};


export const result = async () => {
  const res = await request("结果统计", {
    url: answerApi.result,
    method: "get",
  });
 
  return res;
};
